package com.cnswhy.cloud.server.system;

import com.cnswhy.cloud.security.starter.annotation.EnableCnswhyCloudResourceServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
@EnableCnswhyCloudResourceServer
@SpringBootApplication
@EnableFeignClients
//开启Spring Cloud Security权限注解
//@EnableGlobalMethodSecurity(prePostEnabled = true)
@MapperScan({"com.cnswhy.cloud.server.system.mapper","com.cnswhy.cloud.server.system.dao"})
public class CnswhyServerSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(CnswhyServerSystemApplication.class, args);
    }

}
